<% var pageLevelJS = { %>
<link rel="stylesheet" href="${plugin}/tool/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css">
<script  type="text/javascript" src="${plugin}/tool/zTree/js/jquery.ztree.core.min.js"></script>
<script  type="text/javascript" src="${plugin}/tool/zTree/js/jquery.ztree.excheck.min.js"></script>
<script type="text/javascript">
var settings = {
		 modelDomainFlag:"auth"
		,modelName:"账号"
		,modelFlag:"grouprole"
		 ,key:"${sessionId}" 
		 ,addUrl:window.global.ctx+"/auth/grouprole/newtree"
		 ,updateUrl:window.global.ctx+"/auth/grouprole/newtree"
		}
</script> 
<script type="text/javascript" src="${ctx}/static/fw/js/fw-inputTree.js"></script>
<script type="text/javascript" src="${ctx}/static/js/auth/grouprole/edit.js"></script>
<%};%> 
<% var layoutParas =
{"title":"","add":isEmpty(data.id),"formId":"applyeditForm","pageLevelJS":pageLevelJS};
layout("/WEB-INF/views/btl/template/backBasicEditFormTemplate.html", layoutParas){ %>
	<input type="hidden" name="instanceId" value="${data.instanceId}">
	<input type="hidden" name="id"  value="${data.groupId}">
    <input type="hidden" name="ids" value="">
    <div class="widget-box">
		<div class="widget-header">
			<h4 class="smaller">
				角色列表
				<small>选中即为拥有该角色权限</small>
			</h4>
		</div>
		<div class="widget-body">
			<div class="widget-main">
			    <div class="zTreeDemoBackground left">
					<ul class="ztree" style="overflow:auto"></ul>
				</div>
			</div>
		</div>
	</div>
<%} %>